package cn.stylefeng.guns.modular.banner.pojo.request;

import cn.stylefeng.roses.kernel.rule.pojo.request.BaseRequest;
import cn.stylefeng.roses.kernel.scanner.api.annotation.field.ChineseDescription;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


/**
 * banner封装类
 *
 * @author wxz
 * @date 2022/01/11 11:53
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class BannerRequest extends BaseRequest {

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = {edit.class, delete.class})
    @ChineseDescription("")
    private Integer bannerId;

    /**
     * 主图id
     */
    @ChineseDescription("主图id")
    private Long fileId;

    /**
     * banner名称
     */
    @ChineseDescription("banner名称")
    private String bannerName;

    /**
     * 链接
     */
    @ChineseDescription("链接")
    private String link;

    /**
     * 排序
     */
    @ChineseDescription("排序")
    private Integer sort;

    /**
     * 状态 1可用，2禁用
     */
    @ChineseDescription("状态 1可用，2禁用")
    private Integer status;

}